package com.cut.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

@SpringBootApplication(scanBasePackages = "com.cut")
@ImportResource("classpath:META-INF.spring/provider.xml")
public class CloudApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(CloudApplication.class, args);
        /*//加载xml配置文件启动
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF.spring/provider.xml");
        context.start();
        try
        {
            System.in.read();
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }*/
    }
}
